package com.ark.cloud.javacallnative.modules.storage.service.impl;

import com.ark.cloud.javacallnative.entity.LuaCmd;
import com.ark.cloud.javacallnative.modules.storage.mapper.LuaCmdMapper;
import com.ark.cloud.javacallnative.modules.storage.service.LuaCmdService;
import com.ark.cloud.javacallnative.util.UUIDUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author fukun
 * @create 2021/10/19  下午4:13
 * @description
 */
@Service
public class LuaCmdServiceImpl implements LuaCmdService {
    @Autowired
    LuaCmdMapper luaCmdDao;

    @Override
    public void saveLuaCmdInfo(LuaCmd luaCmd) {
        luaCmd.setId(UUIDUtil.next());

        System.out.println("luaCmd:"+luaCmd);
        luaCmdDao.saveLuaCmdInfo(luaCmd);
    }
}
